package xyz.hrz.service.mq;



import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.redis.Redis;
/**
 * @author hrz
 * @description
 * @create: 2019-10-20
 */
public class MQRedisPub {



    /**
     * 发送消息
     * @param record
     */
    public Long push(Record record){

       return Redis.use().getJedis().publish("msg".getBytes(),record.toJson().getBytes());
        //Redis.use().rpush("msg1",record);
    }

}
